﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Model.Entities;

namespace Model.Mappings
{
    public partial class HRDS_ASSIST_EQUIPMENT_Map : ClassMap<HRDS_ASSIST_EQUIPMENT>
    {
        public HRDS_ASSIST_EQUIPMENT_Map()
        {
            Table("HRDS_ASSIST_EQUIPMENT");
            Id(x => x.EQGUID)
                .Length(36);

            Map(x => x.EQUNO).Not.Nullable().Length(36);
            Map(x => x.EQUMODE).Not.Nullable().Length(50);
            Map(x => x.EQUTYPE).Not.Nullable().Length(50);
            Map(x => x.MADEFACTORY).Not.Nullable().Length(50);
            Map(x => x.EQUIP).Not.Nullable().Length(100);
            Map(x => x.EQUPORT).Not.Nullable().Length(20);
            Map(x => x.EQUSTATUS).Not.Nullable().Length(2);
            Map(x => x.EQUPARMENTS).Not.Nullable().Length(525);
            Map(x => x.INSTRLDATE).Not.Nullable();
            Map(x => x.EQUSN).Not.Nullable().Length(50);
            Map(x => x.EQUCOMMENT).Not.Nullable().Length(500);
            Map(x => x.EQNAME).Not.Nullable().Length(50);
            Map(x => x.STATIONID).Not.Nullable().Length(36);
            Map(x => x.ISFLAG).Not.Nullable().Length(2);
            Map(x => x.MACADDRESS).Not.Nullable().Length(100);
            DoEditableMappings();
        }
    }
}
